package com.winter.controller;

import com.winter.util.rabbitMqUtil.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rabbit")
public class RabbitTest {
    
    @Autowired
    private Producer helloSender1;

    @GetMapping("/hello")
    public void hello() {
        helloSender1.send1();
    }

    @GetMapping("/hello2")
    public void hello2() {
        helloSender1.send2();
    }
}